/**
 * 2016，thor.com，all rights reserved。
 * 
 * Project：		palmmall-spi
 * Filename：	SDeviceService.java
 * Created：		2016年8月21日
 * Creator：		wolv
 */
package com.thor.palmmall.spi.device;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.palmmall.spi.common.SOperateInfo;
import com.thor.palmmall.spi.common.SQueryResult;
import com.thor.palmmall.spi.common.SResponse;
import com.thor.palmmall.spi.common.SUserGroupLoadParam;

/**
 * @author wolv
 *
 */
@Path("/1/device")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface SDeviceService {

  @POST
  @Path(value = "/create")
  SResponse<String> create(SDeviceInspect bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/save")
  SResponse<Void> save(SDeviceInspect bill, @QueryParam("") SOperateInfo operInfo);

  @POST
  @Path(value = "/query")
  SResponse<SQueryResult<SDeviceInspect>> query(SPatrolQueryParam queryParam);

  @POST
  @Path(value = "/{id}")
  SResponse<SDeviceInspect> get(@PathParam("id") String id, SUserGroupLoadParam param);
}
